import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/login',
    name: 'login',
    meta: {
      title: '登陆'
    },
    component: () => import('@/views/login/index.vue')
  },
  {
    path: '/',
    name: 'dashboard',
    meta: {
      title: '首页'
    },
    component: () => import('@/views/dashboard/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory('/'),
  routes
})

export default router
